package com.chen.mobiletwo.dao;

import com.chen.mobiletwo.entity.StudentDetailEntity;
import com.chen.mobiletwo.entity.StudentDetailViewEntity;
import com.chen.mobiletwo.entity.StudentEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface StudentDao {
    int delStudent(int stuId);//根据id删除学生
    int delStudentDetail(int stuId);//根据id删除学生详情
    int delStudentIsDel(int stuId);//软删除学生
    int upIsScl(int inScl,int stuId);//修改在校状态
    int upStudentByStuId(String name,int stuId);//根据id删除学生基本信息
    int upStudentDetailByStuId(String email,int sex,String sfzId,String phone,String weChat,int stuId);//根据id修改学生详情
    int addStudent(String name);//添加学生基本信息
    int addStudentDetail(String detailId,int stuId,String email,int sex,String sfzId,String phone,String weChat);//添加学生详情
    List<StudentDetailViewEntity> getStudentViewList();//查询学生
    StudentEntity getStudentByStuId(int stuId);//根据stuid查询学生详情信息
    StudentDetailEntity getStudentDetailByStuId(int stuId);//根据stuid查询学生详情信息
}
